app.service('productService', ['ajax','$q',function (ajax,$q) {

    this.list = function (){
        var deferred = $q.defer();
        ajax.get({
            url: '/back/commodity/page'
        }).then(function (result) {
            deferred.resolve(result.resultData);
        })
        return deferred.promise;
    }

}]);
